import http from '@/design/libs/request/request'

const BASE_URL = '/plugins/parking/contract'
export default {
  // 获取列表数据
  list: data => http.post(BASE_URL + '/list', data),
  // 创建数据
  create: data => http.post(BASE_URL + '/create', data),
  // 更新数据
  update: data => http.post(BASE_URL + '/update', data),
  // 删除单个
  delete: (id) => http.post(BASE_URL + '/delete/' + id),
  // 删除集合
  del: data => http.post(BASE_URL + '/delete', data),
  // 浏览合同页面
  viewurl: data => http.post(BASE_URL + '/viewurl', data),
  // 下载合同
  download: (id) => http.download(BASE_URL + '/download/' + id),
  // 作废合同
  invalid: data => http.post(BASE_URL + '/invalid', data),
}
